package com.qf.quartz.job;


import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class SimpleJob {

    @Scheduled(fixedRate = 3000)//调度
    public void renmu1(){
        System.err.println("这是spring的任务");
    }

   @Scheduled(cron=" * * * * * ? ")//调度
    public void renwu2(){
        System.err.println("这是 spring 的任务"+System.currentTimeMillis());
    }
}
